let TODOLIST = 'TODOLIST'

let todoStorage = {
    acquireData(){
        return JSON.parse(sessionStorage.getItem(TODOLIST) || '[]')
    },      
    setData(data){
        sessionStorage.setItem(TODOLIST,JSON.stringify(data))
    }
}

export {
    todoStorage
}